/*
 * @Author: Zhang Wei
 * @Date: 2022-04-17 20:58:47
 * @LastEditors: Zhang Wei
 * @LastEditTime: 2022-04-17 21:43:34
 * @FilePath: \02_tank\src\canvas\WallCanvas.ts
 * @Word: There is nothing either good or bad, but thinking makes it so.
 * @Description: 墙画布
 */

import config from '../config';
import CanvasAbstract from './CanvasAbstract';

import WallModel from '../model/WallModel';

class WallCanvas extends CanvasAbstract implements ICanvas  {
  num(): number {
    return config.wall.num;
  }
  model(): ModelConstructor {
    return WallModel;
  }

  render(): void {
    super.createModels();
    super.renderModels();
  }
}

export default new WallCanvas();
